home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility3 / makemdi2.zip / MAKEMDI.BAT < prev    next >
DOS Batch File  |  1992-11-25  |  2KB  |  69 lines

  1. @echo off
  2. set dstdir=%1
  3. set file=%2
  4. set class=%3
  5.  
  6. if "%dstdir%"=="" goto help
  7. if "%file%"=="" goto help
  8. if "%class%"=="" goto help
  9. if not exist .\makemdi.rc goto help
  10. goto gotparms
  11. :help
  12. echo.
  13. echo MAKEMDI - Generic Windows MDI Application Generator
  14. echo.
  15. echo Usage:   makemdi destdir filename ClassName
  16. echo.
  17. echo Example: makemdi c:\myapp test Test
  18. echo          nmake
  19. echo.
  20. echo Must be run from MAKEMDI directory.
  21. echo.
  22. goto exit
  23. :gotparms
  24.  
  25. echo.
  26. echo Creating %class% application in %dstdir%...
  27.  
  28. if exist %dstdir% goto nomkdir
  29. mkdir %dstdir%
  30. :nomkdir
  31. call makemdi2 makefile    %dstdir%\makefile   %file% %class%
  32. call makemdi2 makemdi.rc  %dstdir%\%file%.rc  %file% %class%
  33. call makemdi2 app.rc      %dstdir%\app.rc     %file% %class%
  34. call makemdi2 frame.rc    %dstdir%\frame.rc   %file% %class%
  35. call makemdi2 ribbon.rc   %dstdir%\ribbon.rc  %file% %class%
  36. call makemdi2 chart.rc    %dstdir%\chart.rc   %file% %class%
  37. call makemdi2 sheet.rc    %dstdir%\sheet.rc   %file% %class%
  38. copy          makemdi.ico %dstdir%\%file%.ico >nul
  39. copy          chart.ico   %dstdir%\chart.ico  >nul
  40. copy          sheet.ico   %dstdir%\sheet.ico  >nul
  41. call makemdi2 makemdi.def %dstdir%\%file%.def %file% %class%
  42. call makemdi2 makemdi.h   %dstdir%\%file%.h   %file% %class%
  43. call makemdi2 makemdi.c   %dstdir%\%file%.c   %file% %class%
  44. call makemdi2 resource.h  %dstdir%\resource.h %file% %class%
  45. call makemdi2 app.c       %dstdir%\app.c      %file% %class%
  46. call makemdi2 app.h       %dstdir%\app.h      %file% %class%
  47. call makemdi2 frame.c     %dstdir%\frame.c    %file% %class%
  48. call makemdi2 frame.h     %dstdir%\frame.h    %file% %class%
  49. call makemdi2 client.c    %dstdir%\client.c   %file% %class%
  50. call makemdi2 client.h    %dstdir%\client.h   %file% %class%
  51. call makemdi2 ribbon.c    %dstdir%\ribbon.c   %file% %class%
  52. call makemdi2 ribbon.h    %dstdir%\ribbon.h   %file% %class%
  53. call makemdi2 chart.c     %dstdir%\chart.c    %file% %class%
  54. call makemdi2 chart.h     %dstdir%\chart.h    %file% %class%
  55. call makemdi2 sheet.c     %dstdir%\sheet.c    %file% %class%
  56. call makemdi2 sheet.h     %dstdir%\sheet.h    %file% %class%
  57.  
  58. echo.
  59. echo Done!
  60. echo.
  61. echo Type nmake to create %file%.exe
  62. echo.
  63. cd %1
  64. :exit
  65. set dstdir=
  66. set file=
  67. set class=
  68. set copyr=
  69.